<?
include_once "global.php";

$e = $db->query1("select * from node where folderid = 0 and folder = 0 and parentid = 0 order by orders limit 1");
if ($e["link"]) $direct = "$topurl/{$e["link"]}";
	else $direct = "$topurl/{$e["id"]}/";
	
header("Location: $direct"); die;
?>
